package com.arpa.oms.domain.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * OMS手动抓单DTO
 * </p>
 *
 * @author rfwang
 * @since 2021-08-11
 */
@Data
@ApiModel(value="OmsCaptureOrderRecordDTO对象", description="OMS手动抓单")
public class OmsCaptureOrderRecordDTO extends BasicEntity {


    @ApiModelProperty(value = "手动抓单code")
    private String code;

    @ApiModelProperty(value = "货主标识")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "平台标识")
    private String platformCode;

    @ApiModelProperty(value = "平台名称")
    private String platformName;

    @ApiModelProperty(value = "店铺标识")
    private String shopCode;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "抓取创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtCreated;

    @ApiModelProperty(value = "抓取开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtStart;

    @ApiModelProperty(value = "抓取结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtEnd;

    @ApiModelProperty(value = "抓取条数")
    private Integer captureNum;

    @ApiModelProperty(value = "抓取成功时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtSuccess;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

}
